# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=ktsuss
pkgver=2.1
pkgrel=1
pkgdesc="Graphical version of su written in C and GTK+ (gksu alternative)"
url="https://github.com/nomius/ktsuss"
arch="all"
license="BSD-3-Clause"
makedepends="gtk+2.0-dev bash libtool m4 autoconf automake"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nomius/ktsuss/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -D -m644 COPYING "$pkgdir/usr/share/doc/$pkgname/COPYING"
}

sha512sums="980c184947ebac91f936cad9cd74050e42e57da39f13cca3b9ec0ec44a16265243a1e6f570a2027435234084c1e15ce28b3dc6389d7831237c762b1aafb99507  ktsuss-2.1.tar.gz"
